Skip Headers

Oracle® Data Provider for .NET Developer's Guide 10g Release 2 (10.2) Part Number B14307-01 |
Home | Book List | Contents | Index | Master Index | Feedback

Previous | Next
| View PDF

# OracleTypeException Class

The `OracleTypeException` is the base exception class for handling exceptions that occur in the ODP.NET Types classes.

Class Inheritance

`Object`

`Exception`

`SystemException`

`OracleTypeException`

Declaration

    // C#
    public class OracleTypeException : SystemException

Thread Safety

All public static methods are thread-safe, although instance methods do not guarantee thread safety.

Requirements

Namespace: `Oracle.DataAccess.Types`

Assembly: `Oracle.DataAccess.dll`

See Also: "Oracle.DataAccess.Types Namespace" OracleTypeException Members OracleTypeException Constructors OracleTypeException Static Methods OracleTypeException Properties OracleTypeException Methods

## OracleTypeException Members

`OracleTypeException` members are listed in the following tables:

OracleTypeException Constructors

The `OracleTypeException` constructors are listed in Table 12-1.

Table 12-1 OracleTypeException Constructor

Constructor | Description
--- | ---
OracleTypeException Constructors | Creates a new instance of the `OracleTypeException` class (Overloaded)

OracleTypeException Static Methods

The `OracleTypeException` static methods are listed in Table 12-2.

Table 12-2 OracleTypeException Static Methods

Methods | Description
--- | ---
`Equals` | Inherited from `Object` (Overloaded)

OracleTypeException Properties

The `OracleTypeException` properties are listed in Table 12-3.

Table 12-3 OracleTypeException Properties

Properties | Description
--- | ---
`HelpLink` | Inherited from `Exception`
`InnerException` | Inherited from `Exception`
Message | Specifies the error messages that occur in the exception
Source | Specifies the name of the data provider that generates the error
`StackTrace` | Inherited from `Exception`
`TargetSite` | Inherited from `Exception`

OracleTypeException Methods

The `OracleTypeException` methods are listed in Table 12-4.

Table 12-4 OracleTypeException Methods

Methods | Description
--- | ---
`Equals` | Inherited from `Object` (Overloaded)
`GetBaseException` | Inherited from `Exception`
`GetHashCode` | Inherited from `Object`
`GetObjectData` | Inherited from `Exception`
`GetType` | Inherited from `Object`
ToString | Returns the fully qualified name of this exception

See Also: "Oracle.DataAccess.Types Namespace" OracleTypeException Class

## OracleTypeException Constructors

The `OracleTypeException` constructors create new instances of the `OracleTypeException` class.

Overload List:

- OracleTypeException(string)

  This constructor creates a new instance of the `OracleTypeException` class with the specified error message, `errMessage`.

- OracleTypeException(SerializationInfo, StreamingContext)

  This constructor creates a new instance of the `OracleTypeException` class with the specified serialization information, `si`, and the specified streaming context, `sc`.

See Also: "Oracle.DataAccess.Types Namespace" OracleTypeException Class OracleTypeException Members

### OracleTypeException(string)

This constructor creates a new instance of the `OracleTypeException` class with the specified error message, `errMessage`.

Declaration

    // C#
    public OracleTypeException (string errMessage);

Parameters

- `errMessage`

  The specified error message.

See Also: "Oracle.DataAccess.Types Namespace" OracleTypeException Class OracleTypeException Members

### OracleTypeException(SerializationInfo, StreamingContext)

This constructor creates a new instance of the `OracleTypeException` class with the specified serialization information, `si`, and the specified streaming context, `sc`.

Declaration

    // C#
    protected OracleTypeException (SerializationInfo si, StreamingContext sc);

Parameters

- `si`

  The specified serialization information.

- `sc`

  The specified streaming context.

See Also: "Oracle.DataAccess.Types Namespace" OracleTypeException Class OracleTypeException Members

## OracleTypeException Static Methods

The `OracleTypeException` static methods are listed in Table 12-5.

Table 12-5 OracleTypeException Static Methods

Methods | Description
--- | ---
`Equals` | Inherited from `Object` (Overloaded)

See Also: "Oracle.DataAccess.Types Namespace" OracleTypeException Class OracleTypeException Members

## OracleTypeException Properties

The `OracleTypeException` properties are listed in Table 12-6.

Table 12-6 OracleTypeException Properties

Properties | Description
--- | ---
`HelpLink` | Inherited from `Exception`
`InnerException` | Inherited from `Exception`
Message | Specifies the error messages that occur in the exception
Source | Specifies the name of the data provider that generates the error
`StackTrace` | Inherited from `Exception`
`TargetSite` | Inherited from `Exception`

See Also: "Oracle.DataAccess.Types Namespace" OracleTypeException Class OracleTypeException Members

### Message

Overrides `Exception`

This property specifies the error messages that occur in the exception.

Declaration

    // C#
    public override string Message {get;}

Property Value

An error message.

See Also: "Oracle.DataAccess.Types Namespace" OracleTypeException Class OracleTypeException Members

### Source

Overrides `Exception`

This property specifies the name of the data provider that generates the error.

Declaration

    // C#
    public override string Source {get;}

Property Value

Oracle Data Provider for .NET.

See Also: "Oracle.DataAccess.Types Namespace" OracleTypeException Class OracleTypeException Members

## OracleTypeException Methods

The `OracleTypeException` methods are listed in Table 12-7.

Table 12-7 OracleTypeException Methods

Methods | Description
--- | ---
`Equals` | Inherited from `Object` (Overloaded)
`GetBaseException` | Inherited from `Exception`
`GetHashCode` | Inherited from `Object`
`GetObjectData` | Inherited from `Exception`
`GetType` | Inherited from `Object`
ToString | Returns the fully qualified name of this exception

See Also: "Oracle.DataAccess.Types Namespace" OracleTypeException Class OracleTypeException Members

### ToString

Overrides `Exception`

This method returns the fully qualified name of this exception, the error message in the Message property, the `InnerException.ToString()` message, and the stack trace.

Declaration

    // C#
    public override string ToString();

Return Value

The fully qualified name of this exception.

See Also: "Oracle.DataAccess.Types Namespace" OracleTypeException Class OracleTypeException Members